package main

import "github.com/gin-gonic/gin"

func Hello(ctx *gin.Context) {
	ctx.String(200, "hello world ~")
}

func main() {
	//gin.Default() 是gin.new()的升级
	//router := gin.Default()
	router := gin.New()

	router.GET("/", Hello)

	router.Run(":8081")
}
